package org.extframework.ld.locale;

import java.util.Locale;
import java.util.ResourceBundle;

import org.extframework.ld.content.XmlContent;

/**
 * @author : Dong.Li
 * @created : 2013-1-17
 * @version : 1.0
 * @description :
 */
public class LocaleControl {

	private static String dir = XmlContent.getLocale();

	public static String locale(String str, Locale locale) {
		return ResourceBundle.getBundle(dir + "//" + str.charAt(0), locale)
				.getString(str);
	}

}
